package 
{	
	public class Log {
		
		public static const KEY : String = "--key--";
		public static const MAX : String = "--max--";
		public static const MESSAGE : String = "--message--";
		public static const TEXT : String = "--text--";
		public static const CHARS : String = "--chars--";
		public static const UID: String = "--uid--";
		
		public static const STYLE_ERROR : String = "<font color=\"#ff0000\">"+MESSAGE+"</font>"
		public static const STYLE_WARNING : String = "<font color=\"#ffcc00\">"+MESSAGE+"</font>"
		public static const STYLE_OK : String = "<font color=\"#0D441B\"><b>" + MESSAGE + "</b></font>"
		
		public static const RESPONSE_SAVED : String = "saved.";
		public static const RESPONSE_UNSAVED : String = "unsaved.";
		public static const RESPONSE_READY : String = "ready to save.";

		public static const ERROR_NOTHING_TO_SAVE: String = "there is nothing to save/validate.";
		public static const ERROR_INVALID_ROW :String = "#error: invalid row formation. the a row must have a '"+UID+"' property.";
		public static const ERROR_EMPTY_SCHEME : String = "#error: you have to define a xml scheme!";
		public static const ERROR_INVALID_SCHEME : String = "#error: invalid scheme, the scheme needs at least 2 nodes!";
		public static const ERROR_SAVING : String = "#error: Error while saving this file!";
		
		public static const ERROR_VALIDATION_EMPTY_KEYS :String = "#error: the row with text '"+TEXT+"' has no '"+UID+"'.";
		public static const ERROR_VALIDATION_DUPLICATED_KEYS : String = "#error: there is more than one register with "+UID+":'"+KEY+"'.";
		
		public static const ERROR_XML_EMPTY: String = "#error: empty xml!";
		public static const ERROR_XML_NO_NODES: String = "#error: invalid xml formation, cant find the node structure!";
		public static const ERROR_XML_NO_ATTRIBUTES: String = "#error: there is no attributes in this node!";
		public static const ERROR_XML_PARSING_ELEMENTS : String = "#error parsing xml elements!";
		
		public static const WARNING_EMPTY : String = "warning: the key:'"+KEY+"' has no text."
		public static const WARNING_OVER_CHARS : String = "warning: the key:'"+KEY+"' has more chars ("+CHARS+") then allowed ("+MAX+")."	
	}
}